//
//  UIAlertController+Show.h
//  NoNeedle
//
//  Created by Ming Tian on 2017/3/3.
//  Copyright © 2017年 Ming Tian. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef void (^confirmHandler) (id UIAlertAction);
typedef void (^cancelHandler) (id UIAlertAction);
typedef void (^completeHandler) (void);

@interface UIAlertController (Show)
/**
 *  默认样式为“确定”和“取消”，只能设置确定的事件
 */
+ (void)showAlertToViewController:(UIViewController *)viewController withTitle:(NSString *)title message:(NSString *)message confirmHandler:(confirmHandler)confirmHandler;

/**
 *  可以定制所有样式和事件
 */
+ (void)showAlertToViewController:(UIViewController *)viewController withTitle:(NSString *)title message:(NSString *)message confirmTitle:(NSString *)confirmTitle cancelTitle:(NSString *)cancelTitle confirmHandler:(confirmHandler)confirmHandler cancelHandler:(cancelHandler)cancelHandler complete:(completeHandler)complete;

@end
